/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models.beans;

import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
/**
 *
 * @author Hoang Dong Tien
 */
public class Game extends org.apache.struts.action.ActionForm {

    private int gameId;
    private String gameName;
    private Date startDate;
    private Date endDate;
    private String description;
    private String gameImage;
    private int createUserId;
    private int winnerId;

    public Game() {
        super();
        this.gameId = 0;
        this.gameName = "";
        this.startDate = new Date();
        this.endDate = new Date();
        this.description = "";
        this.gameImage = "";
        this.createUserId = 0;
        this.winnerId = 0;
    }

    public String getGameImage() {
        return gameImage;
    }

    public void setGameImage(String gameImage) {
        this.gameImage = gameImage;
    }

    public int getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(int createUserId) {
        this.createUserId = createUserId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getGameId() {
        return gameId;
    }

    public void setGameId(int gameId) {
        this.gameId = gameId;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public int getWinnerId() {
        return winnerId;
    }

    public void setWinnerId(int winnerId) {
        this.winnerId = winnerId;
    }

    public java.sql.Date getStartDate_sql() {
        return new java.sql.Date(this.startDate.getTime());
    }

    public java.sql.Date getEndDate_sql() {
        return new java.sql.Date(this.endDate.getTime());
    }

     @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();

        return errors;
    }
}
